package com.example.youhuo.adapter

import androidx.fragment.app.*
import androidx.viewpager2.adapter.FragmentStateAdapter

class Vip_Adapter (fragment: FragmentManager, var list: List<Fragment>): FragmentPagerAdapter(fragment) {

    override fun getCount(): Int {
        return list!!.size
    }

    override fun getItem(position: Int): Fragment {
        return list!![position]
    }


}